<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'offer-suggestion-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>
		<div class="row">
		<?php echo $form->labelEx($model,'vendorID'); ?>
		<?php echo $form->dropDownList($model,'vendorID',CHtml::listData(Vendor::model()->findAll(),'vendorID','vendor_name'),array('empty'=>'Select Vendor',)); ?>
		<?php echo $form->error($model,'vendorID'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'suggestion'); ?>
		<?php echo $form->textArea($model,'suggestion',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'suggestion'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->